package com.youxue.dao;

import com.youxue.entity.Line;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface LineMapper {
    int deleteByPrimaryKey(Integer lineId);

    int insert(Line record);

    int insertSelective(Line record);

    Line selectByPrimaryKey(Integer lineId);

    int updateByPrimaryKeySelective(Line record);

    int updateByPrimaryKey(Line record);

    List<Line> selectAClassAllLine(@Param(value = "classId") Integer classId);


    /**
     * 查询一门课程下所有路线以及景点详情
     * @param classId
     * @return
     */
    List<Line> selectAClassAllLineDetailAndLine(@Param(value = "classId") Integer classId);
}